/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.SwitchRecord;
import com.sasis.dao.SwitchRecordDao;
import com.sasis.service.SwitchRecordManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class SwitchRecordManagerImpl extends BaseManager implements SwitchRecordManager {
    private SwitchRecordDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setSwitchRecordDao(SwitchRecordDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.SwitchRecordManager#getSwitchRecords(com.sasis.model.SwitchRecord)
     */
    public List getSwitchRecords(final SwitchRecord switchRecord) {
        return dao.getSwitchRecords(switchRecord);
    }
    
    /**
     * @see com.sasis.service.SwitchRecordManager#getSwitchRecordManager(com.sasis.model.SwitchRecord)
     */
     public List getSwitchRecordManager(final SwitchRecord switchRecord) {
         return dao.getSwitchRecordManager(switchRecord);
     }


    /**
     * @see com.sasis.service.SwitchRecordManager#getSwitchRecord(String id)
     */
    public SwitchRecord getSwitchRecord(final String id) {
        return dao.getSwitchRecord(new Integer(id));
    }

    /**
     * @see com.sasis.service.SwitchRecordManager#saveSwitchRecord(SwitchRecord switchRecord)
     */
    public int saveSwitchRecord(SwitchRecord switchRecord) {
       return dao.saveSwitchRecord(switchRecord);
    }
    
    /**
     * @see com.sasis.service.SwitchRecordManager#saveSwitchRecord(SwitchRecord switchRecord)
     */
    public void saveSwitchRecords(SwitchRecord switchRecord) {
        dao.saveSwitchRecords(switchRecord);
    }

    /**
     * @see com.sasis.service.SwitchRecordManager#removeSwitchRecord(String id)
     */
    public void removeSwitchRecord(SwitchRecord switchRecord) {
        dao.removeSwitchRecord( switchRecord);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
